package com.atguigu.gulimall.member.service;

import com.atguigu.common.to.MemberTo;
import com.atguigu.gulimall.member.vo.MemberVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author DoGH
 * @email sunlightcs@gmail.com
 * @date 2023-10-26 08:41:11
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 注册会员
     *
     * @param memberVO 会员视图
     * @author DuGuanghan
     * @since 2024-08-22 11:12:23
     */
    void regist(MemberVO memberVO);

    /**
     * 用户登录
     *
     * @param memberVO 会员视图
     * @author DuGuanghan
     * @since 2024-08-23 11:19:10
     * @return MemberTo
     */
    MemberTo login(MemberVO memberVO);
}

